# coding=utf8
import yaml

from zUtils.helps import get_root_path

root_path = get_root_path()

env_file = open(root_path + 'config.yml', 'r', encoding='utf8')
config = yaml.safe_load(env_file.read())

# 设置logging
# log_config = config['Log']
# for handle in log_config['handlers']:
#    if 'filename' in log_config['handlers'][handle]:
#        log_config['handlers'][handle]['filename'] = root_path + log_config['handlers'][handle]['filename']
# dictConfig(log_config)
# logger = logging.getLogger('base')
